package com.xuecheng.content.convert;

import com.xuecheng.api.content.model.dto.CourseBaseDTO;
import com.xuecheng.api.content.model.dto.CourseTeacherDTO;
import com.xuecheng.api.content.model.vo.CourseTeacherVo;
import com.xuecheng.content.entity.CourseBase;
import com.xuecheng.content.entity.CourseTeacher;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @ClassName: CourseTeacherConvert
 * @Description: TODO
 * @author: 王亚军
 * @date: 2021/12/15  20:27
 */
@Mapper
public interface CourseTeacherConvert {

    CourseTeacherConvert INSTANCE = Mappers.getMapper(CourseTeacherConvert.class);

    CourseTeacher entity2dto(CourseBaseDTO dto);

    CourseTeacher dto2po(CourseTeacherDTO dto);
    CourseTeacherDTO po2dto(CourseTeacher po);
    CourseTeacherDTO vo2dto(CourseTeacherVo vo);

    List<CourseTeacherDTO> entitys22dtos(List<CourseTeacher> teachers);
}
